package com.bzframework.example.mongo;

import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.io.Serializable;

/**
 * @Author bingzhong
 * @Date 2025/8/25
 */
@Data
@Document(collection = "mongo_test")
public class MongoTestEntity implements Serializable {

    @MongoId
    private String id;

    @Indexed
    private String name;

    private Integer age;

}
